import { QuestionCircleOutlined } from '@ant-design/icons'
import { Tooltip } from 'antd'
import React from 'react'
import './index.less'
import UserInfo from './UserInfo'

export default function HeaderInfo() {
    return (
        <div className="right">
            {/* <HeaderSearch
        // className={`${styles.action} ${styles.search}`}
        placeholder="站内搜索"
        defaultValue="umi ui"
        options={[
          { label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>, value: 'umi ui' },
          {
            label: <a href="next.ant.design">Ant Design</a>,
            value: 'Ant Design',
          },
          {
            label: <a href="https://protable.ant.design/">Pro Table</a>,
            value: 'Pro Table',
          },
          {
            label: <a href="https://prolayout.ant.design/">Pro Layout</a>,
            value: 'Pro Layout',
          },
        ]}
        // onSearch={value => {
        //   //console.log('input', value);
        // }}
      /> */}
            {/* <Tooltip title="使用文档">
                <a
                    target="_blank"
                    href="https://www.baidu.com"
                    rel="noopener noreferrer"
                    className={"action"}
                >
                    <QuestionCircleOutlined />
                </a>
            </Tooltip> */}
            <UserInfo menu={true} />
            {/* <Avatar /> */}
            {/* {REACT_APP_ENV && (
        <span>
          <Tag color={ENVTagColor[REACT_APP_ENV]}>{REACT_APP_ENV}</Tag>
        </span>
      )}
      <SelectLang className={styles.action} /> */}
        </div>
    )
}
